import { useState } from 'react'
import router from './router'
import { useRoutes,Link } from 'react-router-dom'

function App() {
  const [count, setCount] = useState(0)
  const outlet = useRoutes(router)
  return (
    <div className='app'>
       <Link to='/home'>Home</Link>
       <Link to='/about'>About</Link>
       {outlet}
    </div>
  )
}

export default App